#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <signal.h>		/* signal */

#include "bmi088.h"

/**
******************************************************************************
* @file           : main.c
* @brief          : implement for main.c file.
*                   This file contains the common implement of the application.
* @author			: ac
* @attention
*
*		Copyright (c) 2021 Technology Co., Ltd.
*
*******************************************************************************
*/


/*
 * abstruct : main program.
 */
void main(int argc, char ** argv)
{
	if (argc != 2) {
		printf("%s [gyro|acce]\n", argv[0]);
		exit(-1);
	}

	if (!strcmp(argv[1], "gyro")) {
		xag_user_read_gyroscope();
	}
	else if (!strcmp(argv[1], "acce")) {
		xag_user_read_accelerometer();
	}
	else {
		printf("invalid parameter.\n");
	}
}
